{var $robots = noindex}

{block content}
<div id="content-onecol-wrapper">
    <div class="content-onecol">
	{include 'menu.latte'}
	<h2>Prijate spravy</h2>
	{foreach $msgs as $msg}
	<div class="{if $msg->read == 0}unread{else}read{/if}">
	{$msg->timestamp|date:'%d.%m.%Y %H:%M:%S'}
	    {if $isPremium} 
		<a href="{link Message:single $msg->id}">{$msg->content|truncate:20,' ...'}</a>
	    {else}
		Pre precitanie spravy si musite aktivovat ucet !
	    {/if}
	</div>
	{/foreach}
    </div>
</div>

{control vp}

{/block}

{block head}

{/block}